<header class="w-bg" id="fn-head">
    <ul class="h-wrap">
        <div class="tri">
            <li class="h-list">
                <div class="title flex-c">消息中心</div><span class="num new-hide" id="js-cnum">99+</span>
                <!-- <ul class="wrap flex-a">
                    <li class="list active" onclick="loadFrm2(0)">
                        <div class="l-title">私聊消息</div>
                        <span class="num new-hide" id="js-cnum">99+</span>
                    </li>
                    <li class="list" onclick="loadFrm2(1)">
                        <div class="l-title">系统消息</div>
                        <span class="num new-hide" id="js-mnum">99+</span>
                    </li>
                </ul> -->
            </li>
        </div>
    </ul>
</header>
<div id="frm2"></div>
<script>
    var urlFrm2 = getCookie('urlFrm2') || 0;
    loadFrm2(0);

    function loadFrm2(index) {
        var nameArr = ['frame2/frame2-1', 'frame2/frame2-2'];
        setCookie('urlFrm2', index);
        var name = nameArr[index];
        _load('#frm2', name)
        $('.tri .list').eq(index).addClass('active').siblings().removeClass('active');
    }
</script>